package part15_中介者模式_智能家居;

/** 终结者（只是一个抽象类，并不实现任何方法，交给子类来实现）
 * @ClassName: Mediator
 * @Author: AllenSun
 * @Date: 2020/3/8 22:15
 */
public abstract class Mediator {
    /**把终结者的对象，加入到集合当中类
     * @MethodName: Register
     * @Author: AllenSun
     * @Date: 2020/3/8 22:16
     */
    public abstract void Register(String colleagueName, Colleague colleague);

    /**接收消息，具体的同事对象发出
     * @MethodName: GetMessage
     * @Author: AllenSun
     * @Date: 2020/3/8 22:17
     */
    public abstract void GetMessage(int stateChange, String colleagueName);

    /**发出消息
     * @MethodName: SendMessage
     * @Author: AllenSun
     * @Date: 2020/3/8 22:18
     */
    public abstract void SendMessage();
}
